package com.yike.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 支付渠道
 *
 * @author Sakura
 * @since 2024-11-15
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "服务商信息")
public class PayChannelVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID，修改必传")
    private Long id;

    @ApiModelProperty(value = "渠道商名称", required = true)
    @NotBlank(message = "渠道商名称不能为空")
    private String name;

    @ApiModelProperty("通道")
    private String passage;

    @ApiModelProperty("支付方式")
    private String payway;

    @ApiModelProperty("appid")
    private String appId;

    @ApiModelProperty("秘钥")
    private String secretKey;

    @ApiModelProperty("url")
    private String url;

    @ApiModelProperty("状态：1启用 2禁用")
    private Integer status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
